package com.cyanz.dao;

import com.cyanz.entity.Student;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapperInterface {

    @InsertProvider(value = StudentProvider.class,method ="addBatch")
    int addBatchStudent(List<Student> studentList);

    int deleteBatchById(Integer[] ids);

    void update(Student student);

    List<Student> list(@Param("name") String name, @Param("age") Integer age, @Param("password") String password);

    List<Student> listAge(@Param("name") String name, @Param("start") Integer start, @Param("end") Integer end, @Param("password") String password);

}
